const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    proxy: {
      // 代理到第一个服务
      '/api/agv': {
        target: 'http://172.18.4.15:8087',
        changeOrigin: true,
        pathRewrite: { '^/api/agv': '' },
      },
      // 代理到第二个服务
      '/api/four': {
        target: 'http://172.18.5.11:8090',
        changeOrigin: true,
        pathRewrite: { '^/api/four': '' },
      },
    }
  }
})
